home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinME NumLock.xpl < prev    next >
Text File  |  2000-12-13  |  1KB  |  58 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH"="Hardware\System Settings"
  5. "NAME"="Windows ME NUM Lock Options"
  6. "VERSION"="1.01"
  7. "OSVERSION"="00001"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Windows+DOS share the same NUMLOCK state"
  10. "TEXT 2"="NUMLOCK always ON in Windows"
  11. "TEXT 3"="NUMLOCK always OFF in Windows"
  12. "DESCRIPTION 1"="By default, Windows ME and DOS 7.0 share the same NUMLOCK setting, means ON or OFF."
  13. "DESCRIPTION 2"="However, this can be changed to whatever your might prefer."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="Thanks to CptSiskoX for the settings and the idea."
  19.  
  20.  
  21. sV1="HKEY_CURRENT_USER\ControlPanel\Microsoft\Input Devices\Keyboard\NumLock" 
  22.  
  23.  
  24. SUB Plugin_Initialize
  25.     s=RegReadValue(sV1) 
  26.  
  27.     If IsEmpty(s) then SetUIElement 1,true
  28.     If s="ON" then SetUIElement 2,true
  29.     If s="OFF" then SetUIElement 3,true
  30. END SUB
  31.  
  32. SUB Plugin_CheckData(ElementIndex)
  33. END SUB
  34.  
  35. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  b=GetUIElement(1)
  37.  if b=true then
  38.     s=RegReadValue(sV1)
  39.     if IsEmpty(s)=false then RegDeleteValue(sV1)
  40.  end if
  41.  
  42.  b=GetUIElement(2)
  43.  if b=true then
  44.     Call RegWriteValue(sV1,"ON",1)
  45.  end if
  46.  
  47.  b=GetUIElement(3)
  48.  if b=true then
  49.     Call RegWriteValue(sV1,"OFF",1)
  50.  end if
  51.  
  52.  
  53.  Call Logoff
  54. END SUB
  55.  
  56. SUB Plugin_Terminate
  57. END SUB
  58.